package com.zhisuo.apicenter.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ZhiSuoCarBoxReturnDataRowMapper implements RowMapper<ZhiSuoCarBoxReturnData> {

    @Override
    public ZhiSuoCarBoxReturnData mapRow(ResultSet rs, int rowNum) throws SQLException {
        ZhiSuoCarBoxReturnData car = new ZhiSuoCarBoxReturnData();
        car.setCount(rs.getInt("count"));
        car.setContent(rs.getString("boxcontent"));
        car.setName(rs.getString("name"));
        return car;
    }

}
